package tk3.project;


public class Settings {
	 
	
	private int radius;
	private String path;
	private int interval;
	private String StreamName;
	private String StreamPassword;
	private int duration;
	private int Port;
	private String IP;
	private boolean gpsBased;

	
	
	private static Settings activeInstance;
	

	/**
	 * Class for storing the global settings
	 * @param radius
	 * @param path
	 * @param interval
	 * @param streamName
	 * @param streamPassword
	 * @param duration
	 * @param port
	 * @param iP
	 * @param gpsBased
	 */
	public Settings(int radius, String path, int interval, String streamName,
			String streamPassword, int duration, int port, String iP,
			boolean gpsBased) {
		super();
		this.radius = radius;
		this.path = path;
		this.interval = interval;
		StreamName = streamName;
		StreamPassword = streamPassword;
		this.duration = duration;
		Port = port;
		IP = iP;
		this.gpsBased = gpsBased;
		activeInstance = this;
		//System.out.println("Ich existiere:  " + activeInstance);
	}

	public int getRadius() {
		return radius;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getInterval() {
		return interval;
	}

	public void setInterval(int interval) {
		this.interval = interval;
	}

	public String getStreamName() {
		return StreamName;
	}

	public void setStreamName(String streamName) {
		StreamName = streamName;
	}

	public String getStreamPassword() {
		return StreamPassword;
	}

	public void setStreamPassword(String streamPassword) {
		StreamPassword = streamPassword;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public int getPort() {
		return Port;
	}

	public void setPort(int port) {
		Port = port;
	}

	public String getIP() {
		return IP;
	}

	public void setIP(String iP) {
		IP = iP;
	}

	public boolean isGpsBased() {
		return gpsBased;
	}

	public void setGpsBased(boolean gpsBased) {
		this.gpsBased = gpsBased;
	}

	public static Settings getActiveInstance() {
		return activeInstance;
	}
	
}
	
	